#!/usr/bin/env bash

set -x

#设置yum仓库
#rm -rf /etc/yum.repos.d/*
#mv /tmp/CentOS-aliyun.repo /etc/yum.repos.d/

#epel 源
cat <<EOF > /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux
baseurl=https://mirrors.ustc.edu.cn/epel/8/Everything/x86_64
enabled=1
gpgcheck=0
EOF

# 安装语言支持
#yum install -y langpacks-zh_CN.noarch iproute-tc bridge-utils
yum install -y glibc-common glibc-langpack-en iproute-tc bridge-utils bind-utils

yum install -y wget htop glances net-tools telnet iproute tcpdump vim httpry

yum install -y nc traceroute zip unzip bzip2 bash-completion

yum clean all
rm -rf /var/cache/yum/*

#设置时区
#rm -f /etc/localtime
#ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

#创建目录

cat >/etc/profile.d/bjdgyc_env.sh <<EOF
export PATH=/usr/local/bin:\$PATH

export LANG=en_US.UTF-8

alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias tailf='tail -f'
EOF


